using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace OrderingSystem.Core.Entities
{
    [Table("news")]
    public class News
    {
        [Column("id")]
        public long Id { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [Column("addtime")]
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [Column("title")]
        public string BiaoTi { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [Column("introduction")]
        public string JianJie { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [Column("content")]
        public string NeiRong { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        [Column("picture")]
        public string TuPian { get; set; }

        /// <summary>
        /// 点击次数
        /// </summary>
        [NotMapped]
        public int ClickNum { get; set; }
    }
} 